package xyz.zhouxf.rpc.loadbalance;

import com.alibaba.nacos.api.naming.pojo.Instance;

import java.util.List;

/**
 * @author zhouxf
 * @date 2022/9/26
 */
public interface LoadBalancer {
    /**
     * 根据负载均衡策略选择一个实例
     * @param instanceList
     * @return
     */
    Instance selectInstance(List<Instance> instanceList);
}
